import request from '../utils/request';
import {liveLoginUrl} from '../utils/constants'

// const liveLoginUrl = 'http://192.168.0.113:8088'
// export function mlogin(values) {
//   console.log(values);
//   return request( liveLoginUrl + `/live/loginByScan?code=${values}`);
// }
export function mlogin(values) {
  // console.log("delgoods------",values)
  return request(liveLoginUrl + `/live/loginByScan?code=${values}`,{
    method:'POST',
  })
}



// export function mlogin(values) {
//   console.log(values);
//   return request( BACKEND_URL + `/live/user/mlogin?code=${values}`);
// }

export function plogin(values) {
  // console.log(values);
  return request( liveLoginUrl + `/live/user/plogin?code=${values}`);
}
